﻿using EpubFactory.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EpubFactory.Template
{
    public interface IBookRepository
    {
        event EventHandler<BookEventArgs> BookInfoCompleted;
        event EventHandler<BookEventArgs> BookInfoOk;
        event EventHandler<BookEventArgs> BookInfoFail;
        event EventHandler<ChapterEventArgs> ChapterCompleted;
        event EventHandler<ChapterEventArgs> ChapterOk;
        event EventHandler<ChapterEventArgs> ChapterFail;
        Book Parse(string url);
    }
   
}
